#include "vender.h"

VendorHooks VendorSpec;
uint8_t VendorInitDefault(void) 
{ 
    return 0; 
}

uint8_t WaitActBefMoveDefault(uint8_t axis) 
{ 
    return 0; 
}

uint8_t VendorAutoCleanDefault(void) 
{ 
    return 0; 
}

uint8_t DoWetActionDefault(void) 
{ 
    return 0; 
}

uint8_t DoWetOutActionDefault(void) 
{ 
    return 0; 
}

uint8_t OnMainLoopDefault(void) 
{ 
    return 0; 
}

static uint8_t OnMotionReadyDefault(void) 
{
    return 0;
}

static uint32_t VenderCmdDefault(uint8_t *inbuf,uint8_t *outbuf) 
{
    return 0;
}
uint8_t vender_id = 1;
void VendorHooksInit(void)
{
    VendorSpec.VendorInit = VendorInitDefault;
    VendorSpec.WaitActBefMove = WaitActBefMoveDefault;
    VendorSpec.VendorAutoClean = VendorAutoCleanDefault;
    VendorSpec.DoWetAction = DoWetActionDefault;
    VendorSpec.DoOutWetAction = DoWetOutActionDefault;
    VendorSpec.OnMainLoop = OnMainLoopDefault;
    VendorSpec.MotionReady = OnMotionReadyDefault;
    VendorSpec.VenderCmd = VenderCmdDefault;

    switch (vender_id)
    {
    case 1:
        huang_onepass_init();
        break;
    
    case 2:
        huang_cylinder_init();
        break;
    
    case 3:
        huang_onepass2_init();
        break;
    default:
        break;
    }
     

    VendorSpec.VendorInit();
}
